package com.easymin.weixin.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by shine on 15/9/6.
 */
public class BaseEntity implements Serializable {

  protected Long id;

  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  protected Date created; // 创建时间

  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  protected Date updated; // 更新时间

  @JSONField(serialize = false)
  protected Integer version;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public Integer getVersion() {
    return version;
  }

  public void setVersion(Integer version) {
    this.version = version;
  }
}
